package com.xjl.app.job.task;

import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class TestTask {

    @XxlJob("xxJobTest")
    public String xxJobTest(){
        log.info("xxJobTest 定时任务正在执行...");
        String data = XxlJobHelper.getJobParam();
        log.info(data);
        log.info("xxJobTest 定时任务执行成功");
        return data;
    }
}
